home *** CD-ROM | disk | FTP | other *** search
/ Aminet 8 / Aminet 8 (1995)(GTI - Schatztruhe)[!][Oct 1995].iso / Aminet / util / time / taxSched12.lha / taxScheduler / Install taxScheduler < prev    next >
Text File  |  1995-08-19  |  8KB  |  315 lines

  1. ; Installer installation script for taxScheduler
  2. ;$VER: Install 1.0 (19 July 1995)
  3.  
  4. (set @default-dest "")
  5.  
  6. (set program "taxScheduler")
  7. (set progver "1.2")
  8. (set helpdir "help:")
  9. (set catalogdir "locale:catalogs/")
  10.  
  11. ;================================================================================
  12. ; English strings
  13.  
  14. (set catalog-language 1)
  15. (set guide-language 0)
  16.  
  17. (set #bad-kick
  18.    (cat "You must have Kickstart 2.04 or higher installed to use taxScheduler!")
  19. )
  20.  
  21. (set #install
  22.    (cat "\nWelcome to " program " installation utility.\n\n"
  23.         "This script installs " program " v" progver "\n"
  24.         "on your Amiga.\n\n\n"
  25.         program " © Copyright 1995 Oliver Kasper\n"
  26.         "All rights reserved\n\n"
  27.         "(MUI © Stephan Stuntz)")
  28. )
  29.  
  30.  
  31. (set #where-program
  32.    (cat "Where do you want to install " program "?")
  33. )
  34.  
  35. (set #copying
  36.    (cat "Copying ")
  37. )
  38.  
  39. (set #where-regprog
  40.    (cat "Where do you want to install taxSchedulerReg?")
  41. )
  42.  
  43. (set #which-catalogs
  44.    (cat "Which catalogs should be installed?")
  45. )
  46. (set #which-catalogs-help
  47.    (cat program " supports different languages. "
  48.         "A catalog file must be copied to your harddisk "
  49.         "for each language supported.\n\n"
  50.         "To reduce the amount of space consumed by the catalog "
  51.         "files, you can select to have only the files of specific "
  52.         "languages copied.\n\n"
  53.         "Simply check the boxes of the languages you wich to have "
  54.         "available on your system.\n\n")
  55. )
  56. (set #where-catalog
  57.    (cat "Where do you want to install the catalogfile?")
  58. )
  59.  
  60. (set #which-docs
  61.    (cat "Which docs should be installed?")
  62. )
  63. (set #which-docs-help
  64.    (cat program " supports online help in different languages. "
  65.         "A amigaguide file must be copied to your harddisk "
  66.         "for each language supported.\n\n"
  67.         "To reduce the amount of space consumed by the guide "
  68.         "files, you can select to have only the files of specific "
  69.         "languages copied.\n\n"
  70.         "Simply check the boxes of the languages you wich to have "
  71.         "available on your system.\n\n")
  72. )
  73. (set #where-doc
  74.    (cat "Where do you want to install the documentation?")
  75. )
  76.  
  77. ;================================================================================
  78. ; German strings
  79.  
  80. (if (= @language "deutsch")
  81.    (
  82.       (set catalog-language 0)
  83.       (set guide-language 1)
  84.  
  85.       (set #bad-kick
  86.          (cat "Um " program " zu benutzen, benötigen sie mindestens Kickstart 2.04!")
  87.       )
  88.  
  89.       (set #install
  90.          (cat "\nHerzlich Willkommen zum " program"-Installationsprogramm.\n\n"
  91.               "Dieses Skript installiert "
  92.               program " v" progver "\n"
  93.               "auf ihrem Amiga.\n\n\n"
  94.               program " Copyright © 1995 Oliver Kasper\n"
  95.               "Alle Rechte vorbehalten\n\n"
  96.               "(MUI © Stephan Stuntz)")
  97.       )
  98.  
  99.  
  100.       (set #where-program
  101.          (cat "Wo möchten Sie " program " installieren?")
  102.       )
  103.  
  104.       (set #copying
  105.          (cat "Kopieren von ")
  106.       )
  107.  
  108.       (set #where-regprog
  109.          (cat "Wo möchten Sie taxSchedulerReg installieren?")
  110.       )
  111.  
  112.       (set #which-catalogs
  113.          (cat "Welche Sprachen sollen installiert werden?")
  114.       )
  115.       (set #which-catalogs-help
  116.          (cat program " unterstützt verschiedene Sprachen. "
  117.               "Für jede Sprache muß eine Catalog-Datei auf ihre "
  118.               "Festplatte kopiert werden.\n\n"
  119.               "Um Platz zu sparen, brauchen sie nur die gewünschten "
  120.               "Sprachen auszuwählen.\n\n "
  121.               "Selektieren sie einfach die Sprachen, die sie auf "
  122.               "ihrem System benutzen wollen.\n\n")
  123.       )
  124.       (set #where-catalog
  125.          (cat "Wo soll die Catalogdatei installiert werden?")
  126.       )
  127.  
  128.       (set #which-docs
  129.          (cat "Welche Anleitungen sollen installiert werden?")
  130.       )
  131.       (set #which-docs-help
  132.          (cat program " unterstützt Onlinehilfe in verschiedenen Sprachen. "
  133.               "Für jede Sprache muß eine Amigaguide-Datei auf ihre "
  134.               "Festplatte kopiert werden.\n\n"
  135.               "Um Platz zu sparen, brauchen sie nur die gewünschten "
  136.               "Sprachen auszuwählen.\n\n "
  137.               "Selektieren sie einfach die Sprachen, die sie auf "
  138.               "ihrem System benutzen wollen.\n\n")
  139.       )
  140.       (set #where-doc
  141.          (cat "Wo soll die Anleitung installiert werden?")
  142.       )
  143.    )
  144. )
  145.                           
  146. ;================================================================================
  147. ; make sure we are running under a 2.04 ROM
  148.  
  149. (if (< (/ (getversion) 65536) 37)
  150.    (
  151.       (abort #bad-kick)
  152.    )
  153. )
  154.  
  155. ;================================================================================
  156. ;
  157.  
  158. (complete 0)
  159.  
  160. (message
  161.    (#install)
  162. )
  163.  
  164. (welcome)
  165.  
  166. (set destination
  167.    (askdir
  168.       (prompt #where-program)
  169.       (help @askdir-help)
  170.       (default "SYS:WBStartup")
  171.    )
  172. )
  173.  
  174. (copylib
  175.    (prompt "\n" #copying program)
  176.    (help @copylib-help)
  177.    (source program)
  178.    (dest destination)
  179.    (confirm)
  180. )
  181.  
  182. (complete 12)
  183.  
  184. (if (NOT (exists (tackon destination (cat program ".info"))))
  185.    (
  186.       (copyfiles
  187.          (source (cat program ".info"))
  188.          (dest destination)
  189.       )
  190.    )
  191. )
  192.  
  193. (complete 25)
  194.  
  195. (set destination
  196.    (askdir
  197.       (prompt #where-regprog)
  198.       (help @askdir-help)
  199.       (default "SYS:Tools")
  200.    )
  201. )
  202.  
  203. (copylib
  204.    (prompt "\n" #copying "taxSchedulerReg")
  205.    (help @copylib-help)
  206.    (source "taxSchedulerReg")
  207.    (dest destination)
  208.    (confirm)
  209. )
  210.  
  211. (complete 37)
  212.  
  213. (if (NOT (exists (tackon destination "taxSchedulerReg.info")))
  214.    (
  215.       (copyfiles
  216.          (source "taxSchedulerReg.info")
  217.          (dest destination)
  218.       )
  219.    )
  220. )
  221.  
  222. (complete 50)
  223.  
  224. (
  225.    (set lang
  226.       (askoptions
  227.          (prompt #which-catalogs)
  228.          (help #which-catalogs-help @askoptions-help)
  229.          (choices "English")
  230.          (default catalog-language)
  231.       )
  232.    )
  233.    (set n 0)
  234.    (while
  235.       (set language
  236.          (select n
  237.             "english"
  238.             ""
  239.          )
  240.       )
  241.       (
  242.          (if (IN lang n)
  243.             (
  244.                (set destination
  245.                   (askdir
  246.                      (prompt #where-doc)
  247.                      (help @askdir-help)
  248.                      (default (tackon catalogdir language))
  249.                      )
  250.                )
  251.  
  252.                (copyfiles
  253.                   (source (tackon (tackon "catalogs/" language) (cat program ".catalog")))
  254.                   (dest destination)
  255.                )
  256.                (copyfiles
  257.                   (source (tackon (tackon "catalogs/" language) "taxSchedulerReg.catalog"))
  258.                   (dest destination)
  259.                )
  260.             )
  261.          )
  262.          (set n (+ n 1))
  263.       )
  264.    )
  265. )
  266.  
  267. (complete 75)
  268.  
  269. (
  270.    (set lang
  271.       (askoptions
  272.          (prompt #which-docs)
  273.          (help #which-docs-help @askoptions-help)
  274.          (choices "Deutsch")
  275.          (default guide-language)
  276.       )
  277.    )
  278.    (set n 0)
  279.    (while
  280.       (set language
  281.          (select n
  282.             "deutsch"
  283.             ""
  284.          )
  285.       )
  286.       (
  287.          (if (IN lang n)
  288.             (
  289.                (set destination
  290.                   (askdir
  291.                      (prompt #where-catalog)
  292.                      (help @askdir-help)
  293.                      (default (tackon helpdir language))
  294.                   )
  295.                )
  296.  
  297.                (copyfiles
  298.                   (source (tackon (tackon "help/" language) (cat program ".guide")))
  299.                   (dest destination)
  300.                )
  301.                (copyfiles
  302.                   (source (tackon (tackon "help/" language) (cat program ".guide.info")))
  303.                   (dest destination)
  304.                )
  305.             )
  306.          )
  307.          (set n (+ n 1))
  308.       )
  309.    )
  310. )
  311.  
  312. (complete 100)
  313. (exit)
  314.  
  315.